package com.likersai.opon.scene.cultivation.service.req;


import com.likersai.opon.pojo.bo.PageReq;
import com.likersai.opon.scene.cultivation.param.ConfigRealmParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * (ConfigRealm) 保存入参
 *
 * @author sun.ye
 * @since 2024-10-06 17:11:57
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class QueryConfigRealmReq extends PageReq implements Serializable{
    
    private static final long serialVersionUID = -54896703151017506L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 境界名称
     */
    private String realmName;
    /**
     * 境界编码
     */
    private String realmCode;
    /**
     * 境界描述
     */
    private String realmDesc;
    /**
     * 突破需要气
     */
    private Integer qiThreshold;
    /**
     * 境界类型，REALM修真境界
     */
    private String realmType;
    /**
     * 状态
     */
    private Boolean status;

    public ConfigRealmParam toParam(){
        ConfigRealmParam param = new ConfigRealmParam();
        
        param.setId(this.getId());
        param.setRealmName(this.getRealmName());
        param.setRealmCode(this.getRealmCode());
        param.setRealmDesc(this.getRealmDesc());
        param.setQiThreshold(this.getQiThreshold());
        param.setRealmType(this.getRealmType());
        param.setStatus(this.getStatus());
        
        return param;
    }

}

